package com.rpframework.website.device.domain;

import com.rpframework.core.Domain;
import com.rpframework.core.mybatis.plugin.annotation.FieldMapperAnnotation;
import com.rpframework.core.mybatis.plugin.annotation.TableMapperAnnotation;
import com.rpframework.core.mybatis.plugin.annotation.UniqueKeyType;
/**
 * 余额，积分 明细记录
 * @author Administrator
 *
 */
@TableMapperAnnotation(tableName = "t_balance", uniqueKeyType = UniqueKeyType.Single, uniqueKey = "id")
public class Balance extends Domain{
	private static final long serialVersionUID = 1L;
	
	/**
	 * 
	 * */
	@FieldMapperAnnotation
	String id;
	/**
	 * 用户
	 * */
	@FieldMapperAnnotation
	Integer userId;
	/**
	 * 明细名称
	 * */
	@FieldMapperAnnotation
	String name;
	/**
	 * 金额
	 * */
	@FieldMapperAnnotation
	Double money;
	/**
	 * 明细类型  1余额明细  2积分明细
	 * */
	@FieldMapperAnnotation
	Integer type;
	/**
	 * 创建时间
	 * */
	@FieldMapperAnnotation
	Long createTime;
	public Long getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}
	/**
	 * 状态 1正常 2禁用
	 * */
	@FieldMapperAnnotation
	Integer state;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Double getMoney() {
		return money;
	}
	public void setMoney(Double money) {
		this.money = money;
	}
}
